#ifndef __UTIL_H__ #define __UTIL_H__ #include #define CLAMP(x, minimum, maximum) std::max(minimum, std::min(x, maximum)) #endif